package io.finer.erp.jeecg.bas.service;

import io.finer.erp.jeecg.bas.entity.ZrkDeliverEntry;
import io.finer.erp.jeecg.bas.entity.ZrkDeliver;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import org.jeecg.common.api.vo.Result;

/**
 * @Description: 销售出货单
 * @Author: jeecg-boot
 * @Date:   2020-10-21
 * @Version: V1.0
 */
public interface IZrkDeliverService extends IService<ZrkDeliver> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ZrkDeliver zrkDeliver,List<ZrkDeliverEntry> zrkDeliverEntryList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ZrkDeliver zrkDeliver,List<ZrkDeliverEntry> zrkDeliverEntryList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * @Description 根据销售出货单号查询出库单
	 * @param billNo
	 * @return
	 * Create at: 2020-10-23 17:01:32
	 * @author: duany
	 * Revision:
	 *    2020-10-23 17:01:32 - first revision by duany
	 *        
	 */
	public Result<?> getBillShipmentList(String billNo);

	/**
	 * @Description 根据传入的code判断是否是出货单如果是 则返回ID
	 * @param code
	 * @return
	 * Create at: 2020-10-24 09:57:35
	 * @author: duany
	 * Revision:
	 *    2020-10-24 09:57:35 - first revision by duany
	 *        
	 */
	public Map<String, String> getShipmentByCode(String code);
	
}
